package mbp.gui.panels;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JPanel;
import javax.swing.border.TitledBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.BorderLayout;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import mbp.gui.frames.MbpManagerGui;

public class ResourceFunctionViewerGui extends JPanel implements ActionListener 
{
	private MbpManagerGui mbpManagerGui;
	private JTextField txtAgentName;
	private JTable table1;
	private JTable table2;
	
	public ResourceFunctionViewerGui(MbpManagerGui mbpManagerGui) 
	{
		this.mbpManagerGui = mbpManagerGui;
		setLayout(null);
		
		JPanel panel_0 = new JPanel();
		panel_0.setLayout(null);
		panel_0.setBorder(new TitledBorder(null, "Agent", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_0.setBounds(10, 11, 432, 69);
		add(panel_0);
		
		txtAgentName = new JTextField();
		txtAgentName.setColumns(10);
		txtAgentName.setBounds(10, 38, 120, 20);
		panel_0.add(txtAgentName);
		
		JLabel label = new JLabel("Agent name");
		label.setBounds(10, 21, 100, 14);
		panel_0.add(label);
		
		JComboBox cmbFunction = new JComboBox();
		cmbFunction.setBounds(140, 37, 120, 22);
		panel_0.add(cmbFunction);
		
		JLabel label_1 = new JLabel("Function");
		label_1.setBounds(140, 21, 100, 14);
		panel_0.add(label_1);
		
		JButton btnExecute = new JButton("Execute");
		btnExecute.setBounds(269, 37, 91, 23);
		panel_0.add(btnExecute);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "Utility functions", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(10, 91, 432, 133);
		add(panel_1);
		panel_1.setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane_1 = new JScrollPane();
		panel_1.add(scrollPane_1, BorderLayout.CENTER);
		
		table1 = new JTable();
		table1.setFillsViewportHeight(true);
		scrollPane_1.setViewportView(table1);
		
		JPanel panel_2 = new JPanel();
		panel_2.setBorder(new TitledBorder(null, "Validation functions", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_2.setBounds(10, 235, 432, 141);
		add(panel_2);
		panel_2.setLayout(new BorderLayout(0, 0));
		
		JScrollPane scrollPane_2 = new JScrollPane();
		panel_2.add(scrollPane_2, BorderLayout.CENTER);
		
		table2 = new JTable();
		table2.setFillsViewportHeight(true);
		scrollPane_2.setViewportView(table2);
	}
	

	@Override
	public void actionPerformed(ActionEvent arg0) 
	{
		// TODO Auto-generated method stub
		
	}
}
